<template>
<div class="main">
  <!-- 头部导航栏 -->
  <head-component title="常见问题"/>
  <div class="con f28 col_33" v-html="txt"></div>
</div>
</template>

<script>
import headComponent from '@/components/layout/head'
export default {
    name: "xieyi.vue",
    data(){
        return{
          txt:''
        }
    },
    created(){
      var $this = this;
      var t = this.$toast.loading({message: '正在加载数据', mask: true, duration: 9999})
      var data = {u_id: localStorage.getItem('uid'), token: localStorage.getItem('token'),id:3};
      $this.$axios.post('index.php?m=user&c=xieyi', data)
        .then((res) => {
          t.clear();
          if (res.data.code == 1) {
            $this.txt = res.data.data.n_content;
          } else {
            $this.$router.push('/login');
          }
        });
    },
    components: {
      headComponent
    },
}
</script>

<style scoped lang="less">
  .layout-head{border-bottom: 0.02rem solid #f5f5f5;}
  .con{margin: 1.6rem auto 0;width: 92%;line-height: 0.66rem;}
</style>
